package com.bonc.excel.biz;

import com.bonc.excel.service.CateCnfInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import java.util.*;

/**
 * @Author: wujing
 * @Description: TODO
 **/
@Component
@Slf4j
public class ExcelFactory implements ApplicationRunner {

    @Autowired
    private CateCnfInfoService cateCnfInfoService;

    Map<String, ExcelService> screenServiceMap = new HashMap<>(16);

    @Override
    public void run(ApplicationArguments args) throws Exception {
       /* Map<String, ExcelService> map = SpringUtils.beans(ExcelService.class);
        map.forEach((k,v) -> {
            String beanName = v.beanName();
            beanName = StringUtils.isNotBlank(beanName)? beanName : k;
            screenServiceMap.put(beanName,v);
        });
        map = null;*/
    }


    public void getCommonData() {

        try {

        } catch (Exception e) {
            log.error("数据异常,level1Classify:{}",e);
        }
    }


}
